package factory;

import color.Color;
import envase.TipoEnvase;
import figuraGeometrica.FiguraGeometrica;
import java.io.Serializable;

public class EnvaseFactory implements Serializable{
    TipoEnvase tipoEnvase;
    FiguraGeometrica figuraGeometrica;
    Color color;
    
    public EnvaseFactory(EnvaseAbstractFactory factory) {
        tipoEnvase = factory.crearTipo();
        figuraGeometrica = factory.crearFiguraGeometrica();
        color = factory.crearColor(); 
    }
    
    public TipoEnvase getTipoEnvase() {
        return tipoEnvase;
    }

    public void setTipoEnvase(TipoEnvase tipoEnvase) {
        this.tipoEnvase = tipoEnvase;
    }

    public FiguraGeometrica getFiguraGeometrica() {
        return figuraGeometrica;
    }

    public void setFiguraGeometrica(FiguraGeometrica figuraGeometrica) {
        this.figuraGeometrica = figuraGeometrica;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }
}
